package org.car.world.core.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.car.world.core.entily.MerchantsTable;


@Mapper
public interface MerchantsTableMapper {
    int deleteByPrimaryKey(Integer merchantsId);

    int insert(MerchantsTable record);

    MerchantsTable selectByPrimaryKey(Integer merchantsId);

    List<MerchantsTable> selectAll();

    int updateByPrimaryKey(MerchantsTable record);

    boolean updateByPrimaryIdActiv(MerchantsTable record);

    boolean updateByPrimaryBusi(MerchantsTable record);

    int updateByPrimaryShop(MerchantsTable record);

    MerchantsTable loginMerchants(@Param("merchantsPhone") String merchantsPhone, @Param("merchantsShopname") String merchantsShopname);

    List<MerchantsTable> selectLimit(@Param("form") Integer form, @Param("size") Integer size, @Param("merchantsState") Integer merchantsState);

    List<MerchantsTable> selectMatst(@Param("merchantsState") Integer merchantsState);

    int selectcount(Integer merchantsState);

    int merchantsupst(@Param("merchantsId") Integer merchantsId, @Param("sta") Integer sta);

    List<MerchantsTable> selectphone(String phone);

    int SelectByPrimaryKeyPwd(MerchantsTable record);

    int updateByPrimaryPwd(MerchantsTable record);

    int LoginPhonePwd(MerchantsTable record);

}